TARGET=lib/libreactor.a

CXX=g++

CFLAGS=-g++ -o2 -Wall -fPIC  -Wno-deprecated 

SRC=./src
INC=-I./include
OBJS=$(addsuffix .o, $(basename $(wildcard $(SRC)/*.cpp)))


$(TARGET): $(OBJS)
	mkdir -p lib
	ar cqs $@ $^

%.o: %.cpp
	$(cxx) $(CFLAGS) -o $@ -c $< $(INC)

.PHONY: clean clean2

clean:
	-rm -f src/*.o $(TARGET)
	
clean2:
	-rm -f src/*.o

